# @Version : 1.0
# @Author  : 刘宇
# @File    : 13_nested_if_example02.py
# @Time    : 2025/10/7 17:25

month=int(input("请输入月份："))
age=int(input("请输入年龄："))

if 4 <= month <= 10:#旺季

    if age<18:
        print("儿童半价票30元")
    elif 18<= age <=60:
        print("成人票60元")
    else:
        print("老人票20元")
else:#淡季
    if 18<= age <=60:
        print("成人票40元")
    else:
        print("票价20元")
